package cn.crm.Service;

import javax.servlet.http.HttpSession;

import cn.crm.common.ServerResponse;
import cn.crm.entity.User;

public interface IUserService {

	ServerResponse pageList(Integer page, Integer limit, User user);

	ServerResponse deleteAll(String ids);

	ServerResponse insert(User user, String roles);

	ServerResponse login(String name, String password, HttpSession session);

	ServerResponse deleteById(Integer id);

	ServerResponse selectRolesandUsers(Integer userId);

	ServerResponse update(User user, String roles);

	ServerResponse selectIds();

}
